package com.mengshuai.technology.order.service.impl;

import com.mengshuai.technology.order.bean.Users;
import com.mengshuai.technology.order.mapper.UsersMapper;
import com.mengshuai.technology.order.service.UsersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ms
 * @since 2025-06-19
 */
@Service
public class UsersImpl extends ServiceImpl<UsersMapper, Users> implements UsersService {
    @Autowired
    private UsersMapper usersMapper;

    @Override
    public Users getUserById(Integer id) {
        return usersMapper.selectById( id);
    }

    @Override
    public void deleteUserById(Integer id) {
        usersMapper.deleteById(id);
    }

    @Override
    public List<Users> getAllUsers(Users users) {
        return usersMapper.getAllUsers(users);
    }
}
